<template>
  <div style="font-size: 50px;margin: 0 auto;">
    <el-button  type="text" @click="openFullScreen1" v-loading.fullscreen.lock="fullscreenLoading">
    </el-button>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        user: {},
        fullscreenLoading: false

      };
    },
    mounted() {
      this.getDetails();
    },
    methods: {
      async getDetails() {
        this.openFullScreen1()
        let res = await this.$api.htsy_is_auth();
         if (res.code == 200) {
          window.localStorage.setItem("person", JSON.stringify(res.data.data));
          if (res.data.auth) {
            this.$router.push({
              name: "htsy"
            });
          } else {
            this.$router.push({
              name: "login"
            });
          }
        }
      },
      openFullScreen1() {
        this.fullscreenLoading = true;
        setTimeout(() => {
          this.fullscreenLoading = false;
        }, 2000);
      },
    },
  };
</script>

<style>
</style>
